/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package BLL;

import DAL.CategoryDAL;
import utils.JAXBUtil;
import xmlobject.DTO.Categories.Categories;

/**
 *
 * @author kenisk
 */
public class CategoryBLL {
    public void CategoriesToXML(String xmlFilePath){
        CategoryDAL dal = new CategoryDAL();
        Categories category = new Categories();
        category.getCategory().addAll(dal.getAllCategory().getCategory());
        JAXBUtil.marshal(xmlFilePath, category);
    }
}
